package com.wyj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wyj.pojo.YlrcUser;

import javax.jws.Oneway;
import java.util.List;
import java.util.Map;


/**
* @author mac
* @description 针对表【ylrc_user】的数据库操作Service
* @createDate 2022-11-18 19:09:58
*/
public interface YlrcUserService extends IService<YlrcUser> {

    //删除一个用户
    int deleteUser(int id);

    //增加一个用户
    int addUser(YlrcUser ylrcUser);

    List<Map<String, Object>> getUserAndRoles(String userName);

    int deleteUserAndRole(String username, int roleId);

    List<Map<String,Object>> getUserAndMenus(String username);
}
